﻿<table id="tableview" class="table table-striped table-bordered table-hover">
  <colgroup>
    <col width="20px" />
    <col width="120px" />
    <col width="160px" />
    <col width="75px" />
    <col />
    <col width="50px" />
  </colgroup>
  <thead>
    <tr>
      <th class="table-checkbox">
        <input type="checkbox" class="group-checkable" data-set="#tableview .checkboxes" />
      </th>
      <th>
        GID
      </th>
      <th>
        组名
      </th>
      <th>
        成员数
      </th>
      <th>
        描述
      </th>
      <th>
        操作
      </th>
    </tr>
  </thead>
  <tbody>
    @foreach (TBM.Models.Group item in Model){
    <tr id="@("tr" + item.GID)" class="odd gradeX">
      <td>
        <input name="gids" type="checkbox" class="checkboxes" value="@item.GID" @(item.GID == "_admin" ? "disabled=\"disabled\"" : "") />
      </td>
      <td>
        @item.GID
      </td>
      <td data-field="groupname">
        @item.GroupName
      </td>
      <td data-field="membercount">
        @item.MemberCount
      </td>
      <td data-field="descr">
        @item.Descr
      </td>
      <td>
        <a href="~/User/GroupDetail?gid=@item.GID" class="label label-sm label-info" data-toggle="modal" data-target="#group_detail_panel">
          <i class="fa fa-laptop"></i> 详情
        </a>
      </td>
    </tr>
    }
  </tbody>
</table>
@Html.Raw(ViewBag.PageNav)